//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<data_loader.h>
///	@path	~/src/database/store/
///	@date	2008/04/16
///	@desc	Basic data loader provides some data loading utilities.

#pragma once

#include "xeres.h"

#include "database/store/IFile.h"

namespace xeres {

	/*! 
		\class	DataLoader
		\brief
	*/
	class DataLoader
	{
	public:

		/*! 
			\brief	Parse a CDATA section to binary data. Only support basic types.
		*/
		static bool ParseCData( const std::vector<ClassID>& structure , size_t count , const WString& cdata , byte * buffer , size_t len );

	};

} // namespace xeres
